package BizLogic;
import java.util.Random;
public class PasswordGenerator {
	private String salt;
	public String generatePassword(String staffID){
		
		Random rd=new Random();
		salt=String.valueOf(rd.nextInt(999));
		String password=staffID+salt;
		String encriptedpassword=String.valueOf(password.hashCode());
		return encriptedpassword;
	}
	public String getsalt(){return salt;}
}
